/*
 ============================================================================
 Name		: msstsDocument.cpp
 Author	  : weihp
 Copyright   : GNU General Public License, version 2
 Description : CmsstsDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "msstsAppUi.h"
#include "msstsDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CmsstsDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CmsstsDocument* CmsstsDocument::NewL(CEikApplication& aApp)
	{
	CmsstsDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CmsstsDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CmsstsDocument* CmsstsDocument::NewLC(CEikApplication& aApp)
	{
	CmsstsDocument* self = new (ELeave) CmsstsDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CmsstsDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CmsstsDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CmsstsDocument::CmsstsDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CmsstsDocument::CmsstsDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CmsstsDocument::~CmsstsDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CmsstsDocument::~CmsstsDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CmsstsDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CmsstsDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CmsstsAppUi;
	}

// End of File
